package com.sunnay.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunnay.entity.ShopInfoEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ShopInfoMapper extends BaseMapper<ShopInfoEntity> {

    @Delete("delete from tc_weipai.t_wpt_wxid_user_shop where id=#{id}")
    void deleteByShop(String id);

    @Update("update tc_weipai.t_wpt_wxid_user_shop set is_top='1' where id =#{id}")
    void topShop(String id);

    @Update("update tc_weipai.t_wpt_wxid_user_shop set is_top='0' where id =#{id}")
    void cancelTopShop(String id);
}
